﻿<navigation:Page 
           xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"  
           x:Class="ComToolkit.Demo.Views.IO"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="IO Page">
<Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
            <StackPanel VerticalAlignment="Stretch">
            <TextBlock Text="Directory path: (sample: C:\ComToolkit\)" />
            <TextBox x:Name="DirectoryPath" />
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                <Button x:Name="ButtonDeleteDirectory" 
                    Content="Delete"
                    Width="100" Click="ButtonDeleteDirectory_Click" />
                <Button x:Name="ButtonCreateDirectory" 
                    Content="Create"
                    Width="100" Click="ButtonCreateDirectory_Click" />
                <Button x:Name="ButtonListDirectory" 
                    Content="List Contents"
                    Width="100" Click="ButtonListDirectory_Click" />
            </StackPanel>
            <TextBlock Text="Full file path: (sample: C:\ComToolkit\testfile.bin)" />
            <TextBox x:Name="FilePath" />
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                <Button x:Name="ButtonDeleteFile" 
                    Content="Delete"
                    Width="100" Click="ButtonDeleteFile_Click" />
                <Button x:Name="ButtonCreateFile" 
                    Content="Create"
                    Width="100" Click="ButtonCreateFile_Click" />
                <Button x:Name="ButtonOpenFile" 
                    Content="Open"
                    Width="100"
                    HorizontalAlignment="Right" Click="ButtonOpenFile_Click" />
            </StackPanel>
            <TextBlock Text="File content:" />
        </StackPanel>
        <TextBox x:Name="TextEditor"
                Grid.Row="1" 
                 AcceptsReturn="True"
                 VerticalAlignment="Stretch"
                 HorizontalAlignment="Stretch">
            
        </TextBox>
        <Button Grid.Row="2"
            Name="ButtonSave"
            Content="Save"
                Width="100"
                HorizontalAlignment="Right" Click="ButtonSave_Click" />
    </Grid>
</navigation:Page>
